package com.example.SocialApplication.db.entity;

import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.io.Serializable;

@DatabaseTable(tableName = "list_things_to_thing")
public class ListThingsToThing implements Serializable {

    @DatabaseField(columnName = "id", generatedId = true, canBeNull = false, dataType = DataType.INTEGER)
    private int id;
    @DatabaseField(columnName = "list", foreign = true)
    private ListThings listThings;
    @DatabaseField(columnName = "thing", foreign = true)
    private Thing thing;

    public ListThingsToThing() {
    }

    public ListThingsToThing(ListThings listThings, Thing thing) {
        this.listThings = listThings;
        this.thing = thing;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public ListThings getListThings() {
        return listThings;
    }

    public void setListThings(ListThings listThings) {
        this.listThings = listThings;
    }

    public Thing getThing() {
        return thing;
    }

    public void setThing(Thing thing) {
        this.thing = thing;
    }
}
